﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Engine.Helpers
{
    public static class RandomExtensions
    {
        public static float NextFloat(this Random r)
        {
            return (float)r.NextDouble();
        }

        public static float NextFloat(this Random r, float min, float max)
        {
            float val = (float)r.NextDouble();

            return MathHelper.Lerp(min, max, val);
        }
    }
}
